<script type="text/javascript">
// 自动收缩搜索框
var shrinkSearch = function() {
    $('.page_title').removeClass('pulse animated');
    $('.page_title').addClass('pulse animated');
}
$(document).ready(function() {
    location.pathname == "/" || setTimeout(function() { // 首页不自动收缩
        shrinkSearch();
    }, 600);
    setInterval(function() {
        $('.page_title').removeClass('pulse animated');
        setTimeout(function() {
            $('.page_title').addClass('pulse animated');
        }, 2000);
    }, 4000);
});
// 点击title部分展开/收缩搜索框
$('.home .hd').on('click', function() {
    if($('body').attr('id') != 'page-index-index') {
        $('.home').toggleClass('index');
    }
});
</script>